package com.zlyx.easy.database.enums;

import com.zlyx.easy.core.map.DefaultMap;

public enum SqlType{
		
		Select,Insert,Update,Delete,Count;
		
		private static DefaultMap<SqlType> types = DefaultMap.getInstance();
		
		static {
			for(SqlType type : values()) {
				types.put(type.name(), type);
			}
		}
		
		public SqlType getSqlType(String typeName) {
			return types.getValue(typeName);
		}
    }